<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head> 
    <title>My JSP 'index.jsp' starting page</title>
	
  </head>
  
  <body>
  	<% String code = request.getParameter("code");
  		if(code != null &&code.equals("10001")){
  	%>
  	 <div style = "color:red">请先登录</div>
  	 <%} else if(code != null &&code.equals("10002")){
  	 %>
  	 <div style = "color:red">用户名或密码错误</div>
  	 <%} %>
    <form action="login.jspx" method = "post">
    	用户名：<input type = "text" name = "username"/>
    	密码：<input type = "password" name = "pwd"/>
    	<input type = "submit" value = "登陆"/>
    </form>
  </body>
</html>
